package business.datacenter.impl;

import business.datacenter.HZCreditRecognitionService;
import datacenter.domain.HZCreditRecognition;
import datacenter.domain.HZCreditRecognitionCriteria;
import datacenter.mapper.HZCreditRecognitionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/15.
 */
@Service(value = "recognitionService")
public class HZCreditRecognitionServiceImpl implements HZCreditRecognitionService {

    @Autowired
    private HZCreditRecognitionMapper hzCreditRecognitionMapper;

    @Override
    public void saveHZCreditRecognition(List<HZCreditRecognition> entities) {
        int i=0;
        for(HZCreditRecognition entity:entities){
            hzCreditRecognitionMapper.insertSelective(entity);
//            i++;
//            System.out.print(entities.get(i).getCompanyname());
        }

    }
}
